export default class WsData {
    public type;
    // private from;
    public data: any;
    // private connectionId
     //@ts-ignore
    private identity
    // private userName
    // public to = null
    // private token = null
    constructor(type: string, data: WsData) {
        this.type = type
        // this.from = this.GeneraRandom().toString()
        this.data = data;
        // this.to = null;
        // this.connectionId  = this.from;
        this.identity = "Web"
        // this.userName = "";
        // this.token = null;
    }
    public GeneraRandom() {
        return Math.random() * 10000;
    }
}

